<?php
include './base.php';
$price1=$_GET["price1"];
$price2=$_GET["price2"];
$sql="select * from roomsort where price>='$price1' and price<='$price2'";
$res=mysql_query($sql);
$arr=array();
while($row=mysql_fetch_assoc($res)){
    array_push($arr,$row);
}
print_r(json_encode($arr));
?>